package com.gx.recruitment.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class User_favoritesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public User_favoritesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andFavoritesIdIsNull() {
            addCriterion("favorites_id is null");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdIsNotNull() {
            addCriterion("favorites_id is not null");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdEqualTo(Integer value) {
            addCriterion("favorites_id =", value, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdNotEqualTo(Integer value) {
            addCriterion("favorites_id <>", value, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdGreaterThan(Integer value) {
            addCriterion("favorites_id >", value, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("favorites_id >=", value, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdLessThan(Integer value) {
            addCriterion("favorites_id <", value, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdLessThanOrEqualTo(Integer value) {
            addCriterion("favorites_id <=", value, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdIn(List<Integer> values) {
            addCriterion("favorites_id in", values, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdNotIn(List<Integer> values) {
            addCriterion("favorites_id not in", values, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdBetween(Integer value1, Integer value2) {
            addCriterion("favorites_id between", value1, value2, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andFavoritesIdNotBetween(Integer value1, Integer value2) {
            addCriterion("favorites_id not between", value1, value2, "favoritesId");
            return (Criteria) this;
        }

        public Criteria andJobNameIsNull() {
            addCriterion("job_name is null");
            return (Criteria) this;
        }

        public Criteria andJobNameIsNotNull() {
            addCriterion("job_name is not null");
            return (Criteria) this;
        }

        public Criteria andJobNameEqualTo(String value) {
            addCriterion("job_name =", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameNotEqualTo(String value) {
            addCriterion("job_name <>", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameGreaterThan(String value) {
            addCriterion("job_name >", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameGreaterThanOrEqualTo(String value) {
            addCriterion("job_name >=", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameLessThan(String value) {
            addCriterion("job_name <", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameLessThanOrEqualTo(String value) {
            addCriterion("job_name <=", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameLike(String value) {
            addCriterion("job_name like", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameNotLike(String value) {
            addCriterion("job_name not like", value, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameIn(List<String> values) {
            addCriterion("job_name in", values, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameNotIn(List<String> values) {
            addCriterion("job_name not in", values, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameBetween(String value1, String value2) {
            addCriterion("job_name between", value1, value2, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobNameNotBetween(String value1, String value2) {
            addCriterion("job_name not between", value1, value2, "jobName");
            return (Criteria) this;
        }

        public Criteria andJobCompanyIsNull() {
            addCriterion("job_company is null");
            return (Criteria) this;
        }

        public Criteria andJobCompanyIsNotNull() {
            addCriterion("job_company is not null");
            return (Criteria) this;
        }

        public Criteria andJobCompanyEqualTo(String value) {
            addCriterion("job_company =", value, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyNotEqualTo(String value) {
            addCriterion("job_company <>", value, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyGreaterThan(String value) {
            addCriterion("job_company >", value, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyGreaterThanOrEqualTo(String value) {
            addCriterion("job_company >=", value, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyLessThan(String value) {
            addCriterion("job_company <", value, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyLessThanOrEqualTo(String value) {
            addCriterion("job_company <=", value, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyLike(String value) {
            addCriterion("job_company like", value, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyNotLike(String value) {
            addCriterion("job_company not like", value, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyIn(List<String> values) {
            addCriterion("job_company in", values, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyNotIn(List<String> values) {
            addCriterion("job_company not in", values, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyBetween(String value1, String value2) {
            addCriterion("job_company between", value1, value2, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobCompanyNotBetween(String value1, String value2) {
            addCriterion("job_company not between", value1, value2, "jobCompany");
            return (Criteria) this;
        }

        public Criteria andJobAddressIsNull() {
            addCriterion("job_address is null");
            return (Criteria) this;
        }

        public Criteria andJobAddressIsNotNull() {
            addCriterion("job_address is not null");
            return (Criteria) this;
        }

        public Criteria andJobAddressEqualTo(String value) {
            addCriterion("job_address =", value, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressNotEqualTo(String value) {
            addCriterion("job_address <>", value, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressGreaterThan(String value) {
            addCriterion("job_address >", value, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressGreaterThanOrEqualTo(String value) {
            addCriterion("job_address >=", value, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressLessThan(String value) {
            addCriterion("job_address <", value, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressLessThanOrEqualTo(String value) {
            addCriterion("job_address <=", value, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressLike(String value) {
            addCriterion("job_address like", value, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressNotLike(String value) {
            addCriterion("job_address not like", value, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressIn(List<String> values) {
            addCriterion("job_address in", values, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressNotIn(List<String> values) {
            addCriterion("job_address not in", values, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressBetween(String value1, String value2) {
            addCriterion("job_address between", value1, value2, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobAddressNotBetween(String value1, String value2) {
            addCriterion("job_address not between", value1, value2, "jobAddress");
            return (Criteria) this;
        }

        public Criteria andJobPayIsNull() {
            addCriterion("job_pay is null");
            return (Criteria) this;
        }

        public Criteria andJobPayIsNotNull() {
            addCriterion("job_pay is not null");
            return (Criteria) this;
        }

        public Criteria andJobPayEqualTo(String value) {
            addCriterion("job_pay =", value, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayNotEqualTo(String value) {
            addCriterion("job_pay <>", value, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayGreaterThan(String value) {
            addCriterion("job_pay >", value, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayGreaterThanOrEqualTo(String value) {
            addCriterion("job_pay >=", value, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayLessThan(String value) {
            addCriterion("job_pay <", value, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayLessThanOrEqualTo(String value) {
            addCriterion("job_pay <=", value, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayLike(String value) {
            addCriterion("job_pay like", value, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayNotLike(String value) {
            addCriterion("job_pay not like", value, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayIn(List<String> values) {
            addCriterion("job_pay in", values, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayNotIn(List<String> values) {
            addCriterion("job_pay not in", values, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayBetween(String value1, String value2) {
            addCriterion("job_pay between", value1, value2, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobPayNotBetween(String value1, String value2) {
            addCriterion("job_pay not between", value1, value2, "jobPay");
            return (Criteria) this;
        }

        public Criteria andJobDateIsNull() {
            addCriterion("job_date is null");
            return (Criteria) this;
        }

        public Criteria andJobDateIsNotNull() {
            addCriterion("job_date is not null");
            return (Criteria) this;
        }

        public Criteria andJobDateEqualTo(Date value) {
            addCriterionForJDBCDate("job_date =", value, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("job_date <>", value, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobDateGreaterThan(Date value) {
            addCriterionForJDBCDate("job_date >", value, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("job_date >=", value, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobDateLessThan(Date value) {
            addCriterionForJDBCDate("job_date <", value, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("job_date <=", value, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobDateIn(List<Date> values) {
            addCriterionForJDBCDate("job_date in", values, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("job_date not in", values, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("job_date between", value1, value2, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("job_date not between", value1, value2, "jobDate");
            return (Criteria) this;
        }

        public Criteria andJobIdIsNull() {
            addCriterion("job_id is null");
            return (Criteria) this;
        }

        public Criteria andJobIdIsNotNull() {
            addCriterion("job_id is not null");
            return (Criteria) this;
        }

        public Criteria andJobIdEqualTo(Integer value) {
            addCriterion("job_id =", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdNotEqualTo(Integer value) {
            addCriterion("job_id <>", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdGreaterThan(Integer value) {
            addCriterion("job_id >", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("job_id >=", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdLessThan(Integer value) {
            addCriterion("job_id <", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdLessThanOrEqualTo(Integer value) {
            addCriterion("job_id <=", value, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdIn(List<Integer> values) {
            addCriterion("job_id in", values, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdNotIn(List<Integer> values) {
            addCriterion("job_id not in", values, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdBetween(Integer value1, Integer value2) {
            addCriterion("job_id between", value1, value2, "jobId");
            return (Criteria) this;
        }

        public Criteria andJobIdNotBetween(Integer value1, Integer value2) {
            addCriterion("job_id not between", value1, value2, "jobId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}